package top.yihoxu.provider;

import top.yihoxu.common.service.UserService;
import top.yihoxu.registry.LocalRegistry;
import top.yihoxu.server.HttpServer;
import top.yihoxu.server.VertxHttpServer;

/**
 * @Author dth
 * @Date 2024/5/21 14:27
 * @PackageName:top.yihoxu.provider
 * @ClassName: EasyProviderExample
 * @Description: 简易服务提供者实例
 * @Version 1.0
 */
public class EasyProviderExample {
    public static void main(String[] args) {
        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);
        //启动web服务
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8101);
    }
}
